
	<!-- START ALL WORKS -->
	<section class="section-padding">
		<div class="auto-container">
			<div class="row mb-40">
                <div class="col-lg-12 text-center">
                    <div class="portfolio-filter-menu wow fadeInUp">
                        <ul>
							<?php 
							$args = array(
							'show_option_all' => '',
							'orderby' => 'name',
							'order' => 'ASC',
							'style' => 'list',
							'show_count' => 1,
							'hide_empty' => 0,
							'use_desc_for_title' => 1,
							'child_of' => 0, //为0时，是调用所有的分类，
							'feed' => '',
							'feed_type' => '',
							'feed_image' => '',
							'exclude' => '',
							'exclude_tree' => '',
							'include' => '',
							'hierarchical' => 1,
							'title_li' => __( '' ),
							'show_option_none' => __('No categories'),
							'number' => 10,
							'echo' => 1,
							'depth' => 0,
							'current_category' => 0,
							'pad_counts' => 0,
							'taxonomy' => 'products', //自定义文章类型名
							'walker' => null
							);
							wp_list_categories($args);
							// echo "630";
							?>
                        </ul>
                    </div>
                </div>
                <!--- END COL -->
			</div>
			<!-- end row-->
			<div class="portfolio-items">
				<div class="row">

					<?php 
$post_type = $post->post_type;
$postid=get_queried_object_id();
$postname=get_term( get_queried_object_id(), $taxonomy );
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    $args = array(
        'post_type' => $post_type, //自定义文章类型名称

        // 'posts_per_page'=>3,
        'paged'=>$paged,
        'tax_query' => array(
            array(
                'taxonomy' => 'products',//自定义分类法名称
                'terms' => $postid //id为64的分类。也可是多个分类array(12,64)
                ),
            )
        );
    $my_query = new WP_Query($args);

if($my_query->have_posts()):while($my_query->have_posts()):$my_query->the_post();

 get_template_part( 'template-parts/case/case_temp_1', get_post_type() );


endwhile;
endif;

?>
		

<?php wp_reset_postdata(); ?>
					<!-- end single portfolio -->
				</div>
			</div>
			<div class="row mt-40">
                <div class="col-lg-12 text-center">
                    <div class="page-num"><?php mo_paging();  ?></div>
                </div>
                <!--- END COL -->
			</div>
			<!-- end row-->
		</div>
	</section>
	<!-- END ALL WORKS -->


	
